class Employee:
    pass


class EmployeeIterator:
    def __init__(self, employees):
        self.all_employee = employees
        self.index = 0

    def __next__(self):
        if self.index >= len(self.all_employee):
            raise StopIteration()
        else:
            item = self.all_employee[self.index]
            self.index += 1
            return item


class EmployeeManager:
    def __init__(self, employees):
        self.all_employee = employees

    def __iter__(self):
        return EmployeeIterator(self.all_employee)


manager = EmployeeManager([Employee(), Employee()])
for element in manager:
    print(element)
